/*年轻人，只管向前看，不要管自暴自弃者的话*/
package com.lib.base.ui

import android.os.Bundle
import androidx.viewbinding.ViewBinding


/**
 * create by itz on 2023/12/28 10:17
 * desc :
 **/
abstract class BaseBindingActivity<VB : ViewBinding> : BaseUiActivity() {

    protected lateinit var mBinding: VB

    abstract fun bindingView(): VB

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setBindingView()
    }

    protected open fun setBindingView() {
        mBinding = bindingView()
        setContentView(mBinding.root)
    }

    protected val binding get() = mBinding
}